/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2a2a2a;
    color: white;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.user-options a {
    color: white;
    margin-left: 10px;
    text-decoration: none;
}

/* Navigation Bar */
nav {
    background-color: #4a4a4a;
    padding: 10px;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Welcome Section */
.welcome-section {
    padding: 20px;
    background-color: white;
    margin: 20px;
    border-radius: 8px;
}

/* Main Content Layout */
main {
    display: flex;
    flex-direction: column;
    margin: 20px;
}

/* Content Columns */
.content-container {
    display: flex;
    justify-content: space-between;
}

.left-column {
    flex: 1;
    margin-right: 30px;
}

.right-column {
    width: 30%;
}

.content-box {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    height: 250px;
    background-image: url(../棋类背景1.png);
    background-size: cover;
}

.red {
    background-color: #f28b82;
}

.yellow {
    background-color: #fbbc04;
}

.green {
    background-color: #81c995;
}

.today-game {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    height: 500px;
}

.posts {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
}

/* Placeholder for images */
.placeholder {
    width: 100%;
    height: 400px;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-bottom: 10px;

}
.weiqi{
    width: 450px;
    height: 400px;
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #2a2a2a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 14px;
}
